/* styles.css */
/* 基础样式 */
:root {
    --primary: #1976d2;
    --primary-dark: #1565c0;
    --secondary: #4caf50;
    --accent: #ff9800;
    --light: #f5f9ff;
    --dark: #333;
    --gray: #666;
    --light-gray: #f0f0f0;
    --shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--dark);
    background-color: #f9fbfd;
    overflow-x: hidden;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

img {
    max-width: 100%;
    height: auto;
}

a {
    text-decoration: none;
    color: inherit;
}

/* 头部样式 */
.header {
    background: linear-gradient(135deg, var(--primary), #1e88e5);
    color: white;
    text-align: center;
    padding: 80px 0 60px;
    position: relative;
    overflow: hidden;
    margin-bottom: 30px;
}

.header::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" preserveAspectRatio="none"><path d="M0,0 L100,0 L100,100 Z" fill="rgba(255,255,255,0.1)"/></svg>');
    background-size: cover;
    z-index: 1;
}

.header h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    position: relative;
    z-index: 2;
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.header p {
    font-size: 1.5rem;
    font-weight: 300;
    position: relative;
    z-index: 2;
    max-width: 700px;
    margin: 0 auto;
}

/* 导航栏样式 */
.nav {
    background-color: white;
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: var(--transition);
}

.nav.scrolled {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.nav-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

.nav-title {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav-toggle {
    background: none;
    border: none;
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: none;
    flex-direction: column;
    justify-content: center;
    position: relative;
}

.nav-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--primary);
    transition: var(--transition);
    position: absolute;
    left: 7px;
}

.nav-toggle span:nth-child(1) { top: 12px; }
.nav-toggle span:nth-child(2) { top: 18px; }
.nav-toggle span:nth-child(3) { top: 24px; }

.nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg);
    top: 18px;
}

.nav-toggle.active span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg);
    top: 18px;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 25px;
}

.nav-menu li a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 15px;
    /* border-radius: 50px; */
    transition: var(--transition);
    font-weight: 500;
}

.nav-menu li a:hover {
    background-color: rgba(25, 118, 210, 0.1);
    color: var(--primary);
}

/* 主体内容样式 */
.main-content {
    padding: 40px 0 80px;
}

.section {
    background-color: white;
    border-radius: 12px;
    box-shadow: var(--shadow);
    padding: 40px;
    margin-bottom: 40px;
    position: relative;
    overflow: hidden;
}

.section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 5px;
    height: 100%;
    background: linear-gradient(to bottom, var(--primary), var(--secondary));
}

.section h2 {
    font-size: 2.2rem;
    margin-bottom: 30px;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 15px;
}

.section h2 i {
    background-color: rgba(25, 118, 210, 0.1);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: var(--primary);
}

.section p {
    margin-bottom: 20px;
    color: var(--gray);
    font-size: 1.1rem;
}

/* 图片画廊样式 */
.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

.gallery-item {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    position: relative;
}

.gallery-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 12px 20px rgba(0, 0, 0, 0.15);
}

.gallery-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

.caption {
    padding: 15px;
    background-color: white;
    font-weight: 500;
    color: var(--dark);
    text-align: center;
}

/* 信息卡片样式 */
.info-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

.info-card {
    background-color: white;
    border-radius: 10px;
    padding: 25px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid rgba(25, 118, 210, 0.1);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.info-card::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(to right, var(--primary), var(--secondary));
    transition: var(--transition);
    transform: scaleX(0);
    transform-origin: right;
}

.info-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.info-card:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

.info-card h3 {
    font-size: 1.4rem;
    margin-bottom: 15px;
    color: var(--primary);
}

.info-card p {
    color: var(--gray);
    margin-bottom: 15px;
}

.price {
    font-size: 1.8rem;
    font-weight: bold;
    color: var(--primary);
    margin: 15px 0;
}

.price::before {
    content: "价格: ";
    font-size: 1rem;
    color: var(--gray);
}

.info-card ul {
    text-align: left;
    margin-top: 15px;
    padding-left: 20px;
}

.info-card ul li {
    margin-bottom: 8px;
    color: var(--gray);
    position: relative;
}

.info-card ul li::before {
    content: "•";
    color: var(--primary);
    font-weight: bold;
    position: absolute;
    left: -15px;
}

/* 时间线样式 */
.timeline {
    position: relative;
    max-width: 800px;
    margin: 40px auto 0;
}

.timeline::before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(to bottom, var(--primary), var(--secondary));
    left: 50%;
    margin-left: -2px;
    border-radius: 10px;
}

.timeline-item {
    position: relative;
    margin-bottom: 40px;
}

.timeline-item:nth-child(odd) {
    padding-right: calc(50% + 20px);
    text-align: right;
}

.timeline-item:nth-child(even) {
    padding-left: calc(50% + 20px);
}

.timeline-content {
    background-color: white;
    border-radius: 10px;
    padding: 25px;
    box-shadow: var(--shadow);
    position: relative;
    transition: var(--transition);
}

.timeline-content:hover {
    transform: scale(1.02);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.timeline-content::before {
    content: "";
    position: absolute;
    width: 20px;
    height: 20px;
    background-color: var(--primary);
    border-radius: 50%;
    top: 30px;
}

.timeline-item:nth-child(odd) .timeline-content::before {
    right: -30px;
}

.timeline-item:nth-child(even) .timeline-content::before {
    left: -30px;
}

.timeline-content h3 {
    font-size: 1.4rem;
    margin-bottom: 15px;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 10px;
}

/* 按钮样式 */
.btn {
    background: linear-gradient(to right, var(--primary), var(--primary-dark));
    color: white;
    border: none;
    padding: 12px 30px;
    font-size: 1.1rem;
    border-radius: 50px;
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 4px 15px rgba(25, 118, 210, 0.3);
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(25, 118, 210, 0.4);
}

/* 页脚样式 */
.footer {
    background: linear-gradient(135deg, #1a237e, #3949ab);
    color: white;
    padding: 40px 0;
    text-align: center;
}

.footer p {
    margin: 10px 0;
    color: rgba(255, 255, 255, 0.8);
}

/* 响应式设计 */
@media (max-width: 992px) {
    .timeline::before {
        left: 30px;
    }
    
    .timeline-item:nth-child(odd) {
        padding-right: 0;
        padding-left: calc(50% + 20px);
        text-align: left;
    }
    
    .timeline-item:nth-child(odd) .timeline-content::before {
        right: auto;
        left: -30px;
    }
}

@media (max-width: 768px) {
    .nav-toggle {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        top: 70px;
        left: 0;
        width: 100%;
        background-color: white;
        flex-direction: column;
        padding: 20px 0;
        gap: 5px;
        box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
        transform: translateY(-150%);
        transition: var(--transition);
    }
    
    .nav-menu.active {
        transform: translateY(0);
    }
    
    .nav-menu li a {
        justify-content: center;
    }
    
    .section {
        padding: 30px 20px;
    }
    
    .gallery {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    }
    
    .timeline::before {
        left: 20px;
    }
    
    .timeline-item:nth-child(odd),
    .timeline-item:nth-child(even) {
        padding-left: 50px;
        padding-right: 20px;
    }
    
    .timeline-item:nth-child(odd) .timeline-content::before,
    .timeline-item:nth-child(even) .timeline-content::before {
        left: -10px;
    }
}

@media (max-width: 576px) {
    .header h1 {
        font-size: 2.5rem;
    }
    
    .header p {
        font-size: 1.2rem;
    }
    
    .section h2 {
        font-size: 1.8rem;
    }
    
    .gallery {
        grid-template-columns: 1fr;
    }
    
    .info-cards {
        grid-template-columns: 1fr;
    }
    
    .timeline-content {
        padding: 20px;
    }
}

/* 动画效果 */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.section {
    animation: fadeIn 0.6s ease forwards;
}

/* 延迟动画 */
.section:nth-child(1) { animation-delay: 0.1s; }
.section:nth-child(2) { animation-delay: 0.2s; }
.section:nth-child(3) { animation-delay: 0.3s; }
.section:nth-child(4) { animation-delay: 0.4s; }
.section:nth-child(5) { animation-delay: 0.5s; }
.section:nth-child(6) { animation-delay: 0.6s; }